//out:false

/* 
    ########### 公共版式 ###########
*/

/* 顶栏样式 */
.topStyle {
    width: 100%;
    height: (50/@rem);
   
    display: flex;
    align-items: center;
    background-color: #fff;
}

/* 通用顶栏 */
/* 
预设代码：
<div class="topPreset">
    <a href="javascript:;">
    <span class="iconfont icon-xiangzuo1"></span>
    </a>
    <h2>标题</h2>
</div>
*/
.topPreset {
    width: 100%;
    height: (50/@rem);
    display: flex;
    align-items: center;
    background-color: #fff;
    text-align: center;
    padding-left: (14.87/@rem);
    padding-right: (14.87/@rem);
    line-height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    overflow: hidden;
    a {
        .iconfont {
            font-size: @s18;
        }
    }

    h2 {
        width: 100%;
        text-align: center;
        font-size: @s18;
    }
}

/* 通用底栏 */
/* 
预设代码：
<div class="bottomStyle">
    < !-- 任务 -->
    <div class="tesk">
        <a id="teskBtn" href="javascript:;">
            <span class="iconfont icon-xietongrenwu"></span>
            <p>任务</p>
        </a>
    </div>
    < !-- 消息 -->
    <div class="information">
        <a id="informationBtn" href="javascript:;">
            <span class="iconfont icon-btn_mess_nor"></span>
            <p>消息</p>
        </a>
    </div>
    < !-- 我的 -->
    <div class="mine">
        <a id="mineBtn" href="javascript:;">
            <span class="iconfont icon-btn_mine_nor"></span>
            <p>我的</p>
        </a>
    </div>
</div>
*/
.bottomStyle {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    height: (48/@rem);
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-around;

    div {
        text-align: center;
        a {
            .iconfont {
                display: block;
                color: @text2Color;
                font-size: @s18;
                transition: all 0.3s;
                border-radius: 50%;
                background-color: #fff;
            }

            p {
                color: @text2Color;
                font-size: @s10;
                transition: all 0.3s;
            }
        }
    }
}
// 底栏动态
.bottomStyle div .redSel {
    span {
        color: @mainColor;
        width: @s25;
        height: @s25;
        line-height: @s25;
        transform: translateY(-@s10) scale(1.5);
    }

    p {
        color: @mainColor;
        font-weight: 700;
    }
}

/* 公共版心 */
.wrapper {
    width: (345/@rem);
    border-radius: @s10;
    margin: @s15 auto;
    background-color: #fff;
}

/* 全屏半透明黑色遮罩 */
/* 
预设代码：
<div class="screenMask"></div>
*/
.screenMask {
    position: absolute;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    z-index: -1;
    transition: all 0.3s;
}

// 上传按钮样式
.uploadFiles {
    position: absolute;
    // width: 100%;
    // height: 100%;
    opacity: 0;
}

/* 悬浮文字提醒 */
/* 
预设代码：
<div class="floatingTips">
    <span>提示文字</span>
</div>
*/
//样式类名[先给元素加上此类名]
.floatingTips {
    position: fixed;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: (90/@rem);
    height: @s37;
    background-color: @textColor;
    border-radius: @s10;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;

    span {
        font-size: @s14;
        color: #fff;
    }
}

//动画类名(TipsActiveClass)[需要元素出现时，用js加上此类名]
.floatingTips.TipsActiveClass {
    animation: floatingTipsActive 3s;
}

@keyframes floatingTipsActive {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 0.8;
    }

    100% {
        opacity: 0;
    }
}

/* 空内容提示 */
/* 
预设代码：
<div class="emptyContent">
    <img src="./images/不存在@2x.png" alt="" />
    <p class="emptyContentHint">空信息提示</p>
</div>
*/
.emptyContent {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;

    img {
        width: (200/@rem);
        height: (120/@rem);
    }

    p {
        font-size: @s14;
        color: @text2Color;
    }
}

/* 
    ########### 快捷样式 ###########
*/

/* flex居中 给子元素居中 子元素与父元素都要设置宽度才能生效 */
.flexCenter {
    display: flex;
    align-items: center;
    justify-content: center; //此属性可选择性覆盖
}

/* position子绝父相利用margin居中 */
.positionMarginCenter {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
}

/* position子绝父相利用transform居中 */
.positionTransformCenter {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* 
    ### 小货车动画 ###
*/
.topActive {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    height: 0;
    z-index: -1;
    img {
        transition: all 0.3s;
        transform: scale(0.4);
        height: 0;
        opacity: 0;
        animation: huoche 0.2s infinite alternate;
        z-index: -1;
    }
}
@keyframes huoche {
    to {
        transform: translateY(3%) scale(0.4);
    }
}

/* 
    预设代码：
    < !-- 加载中动画 -->
    <div class="loading">
        <div></div>
        <p>加载中...</p>
    </div>
*/
// 加载中动画
.loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: (90/@rem);
    height: (90/@rem);
    border-radius: @s8;
    background-color: #000;
    opacity: 0.5;
    text-align: center;
    transition: all 0.3s;
    div {
        height: (40/@rem);
        width: (40/@rem);
        border: @s3 solid rgba(255, 255, 255, 0.5);
        border-top: @s3 solid #fff;
        border-right: @s3 solid #fff;
        border-radius: 50%;
        margin: @s15 auto @s5;
        animation: loadingSpin 1.3s infinite linear;
    }
    p {
        font-size: @s14;
        color: #fff;
    }
}
@keyframes loadingSpin {
    to {
        transform: rotate(360deg);
    }
}